package com.xbongbong.lfasr.event;


import com.xbongbong.lfasr.model.EventType;
import com.xbongbong.lfasr.model.FileSlice;
import com.xbongbong.lfasr.model.UploadParams;
import lombok.Getter;
import lombok.Setter;


/**
　* @Description: 事件
　* @param ${tags}
  * @return ${return_type}
　* @throws
　* @author youli.chen
  * @date 2019/3/13 19:58
　*/
@Setter
@Getter
public class Event {
    private EventType type;
    private UploadParams params;
    private FileSlice file_slice;

    public Event(EventType type, UploadParams params) {
        this.type = type;
        this.params = params;
    }

    public FileSlice getFileSlice() {
        return this.file_slice;
    }

    public void setFileSlice(FileSlice file_slice) {
        this.file_slice = file_slice;
    }
}
